<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>已审核会员</title>

		<meta name="description" content="Static &amp; Dynamic Tables" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!--basic styles-->

		<link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet" />
		<link href="__PUBLIC__/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link href="__PUBLIC__/css/animate.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="__PUBLIC__/css/font-awesome.min.css" />
		<!-- 分页样式 -->
		<link rel="stylesheet" href="__PUBLIC__/css/page.css" />

		<style type="text/css" title="currentStyle">
			@import "__PUBLIC__/css/TableTools.css";
		</style>

		<!--[if IE 7]>
		  <link rel="stylesheet" href="__PUBLIC__/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!--page specific plugin styles-->

		<!--bbc styles-->

		<link rel="stylesheet" href="__PUBLIC__/css/bbc.min.css" />
		<link rel="stylesheet" href="__PUBLIC__/css/bbc-responsive.min.css" />
		<link rel="stylesheet" href="__PUBLIC__/css/bbc-skins.min.css" />
		<script src="__PUBLIC__/js/My97DatePicker/WdatePicker.js"></script>
		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="__PUBLIC__/css/bbc-ie.min.css" />
		<![endif]-->

		<!--inline styles if any-->
	</head>

	<body>
    <style>
	input[type="checkbox"].allcheckbox{ opacity:1; position:relative;}
	</style>
    
    
		<!--导航-->
		<include file="Public:navbar" />

		<div class="container-fluid" id="main-container">
			<a id="menu-toggler" href="#">
				<span></span>
			</a>

			<!--边栏-->
			<include file="Public:sidebar" />

			<div id="main-content" class="clearfix">
				<div id="breadcrumbs">
					<ul class="breadcrumb">
						<li>
							<i class="icon-home"></i>
							Home

							<span class="divider">
								<i class="icon-angle-right"></i>
							</span>
						</li>
						<li class="active">会员管理</li>
					</ul><!--.breadcrumb-->
				</div>

				<div id="page-content" class="clearfix">

					<div class="row-fluid">
						<!--PAGE CONTENT BEGINS HERE-->
						<form id="table-searchbar" method="POST" class="form-inline well well-small">
							<div class="row-fluid">&nbsp;&nbsp;<select class="span3" name="type" style="width: 100px;">
																<option value="1" selected="selected">用户ID</option>
																<option value="2">真实姓名</option>
																<option value="3">手机号</option>
																<option value="4">会员账号</option>
															</select>
				                <input type="text" class="input-small" name="typename" value="">    
		                        &nbsp;&nbsp;
								<button type="submit" class="btn btn-small no-border" id="btn-query" type="button"><i class="icon-search"></i>查询</button>
							<!--	&nbsp;&nbsp;
								<button type="button"  onclick="return clear1()" class="btn btn-success btn-small no-border" id="btn-compute" type="button">导出会员报表</button>	-->
							</div>
						</form>


                        
							<table id="table_report" class="table table-striped table-bordered table-hover">
								<thead>
									<tr>
										
                                        <th><input type="checkbox"  class="allcheckbox" onClick="$('input[type=checkbox]').prop('checked', $(this).prop('checked'));"></th>
                                        <th><a href="{:U('systemlogined/Member/check',array('_order'=>'id','_sort'=>0))}">编号↑</a></th>
										<th>级别</th>
										<th>姓名</th>

										<th>手机号码</th>
										<th>推荐人</th>
										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'ztnum','_sort'=>0))}">直推人数↑</a></th>
										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'tdnum','_sort'=>0))}">团队人数↑</a></th>
										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'regdate','_sort'=>0))}">注册时间↑</a></th>

										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'mygonglv','_sort'=>0))}">个人算力↑</a></th>
										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'teamgonglv','_sort'=>0))}">公会算力↑</a></th>
										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'jinbi','_sort'=>0))}">矿池钱包↑</a></th>
										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'kczc','_sort'=>0))}">矿池资产↑</a></th>
										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'ksye','_sort'=>0))}">可售余额↑</a></th>
										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'ksed','_sort'=>0))}">可售额度↑</a></th>
										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'qjinbi','_sort'=>0))}">交易冻结↑</a></th>
										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'status','_sort'=>0))}">实名↑</a></th>
										<th><a href="{:U('systemlogined/Member/check',array('_order'=>'lock','_sort'=>0))}">状态↑</a></th>
                                        <th>在线状态</th>
										<th>重新上传收款码</th>
                                        <th>操作</th>
									</tr>
								</thead>
								<tbody>
									<foreach name="list" item="v">
										<tr>
											<td><input type="checkbox" name="userid[]" value="{$v['id']}" class="allcheckbox"></td>
                                            
                                            <td><a target="_blank" href="{:U('inMember',array('u'=>$v['username']))}">{$v.id}</a></td>
											<td>{:group($v[level])}</td>
											<td>{$v.truename}</td>
											<td>{$v.mobile}</td>												
											<td><a target="_blank" href="{:U('inMember',array('u'=>$v['parent']))}">{$v.parent_id}</td>
											<td><a href="{:U('Member/check',array('pid'=>$v['id']))}">{$v.ztnum}</a></td>
											<td>{$v.tdnum}</td>
											<td>{$v.regdate|date='Y-m-d H:i',###}</td>

											<td>{$v.mygonglv}</td>
											<td>{$v.teamgonglv}</td>
											<td>{$v.jinbi}</td>
											<td>{$v.kczc}</td>
											<td>{$v.ksye}</td>
											<td>{$v.ksed}</td>
											<td>{$v.qjinbi}</td>
											<td>
												<if condition='$v["status"] eq 1'>
													<font color="red">已实名</font>
													<else/>
													<font color="#4169e1">未实名</font>
												</if>
											</td>
											<td>
												<if condition='$v["lock"] eq 1'>
													<font color="red">已封停</font>
												<else/>
													<font color="#4169e1">正常</font>
												</if>
											</td>
                                            
                                            
                                            
                                            <td>
												<?php if((time()-$v["online_time"]) < 300){?>
                                                
                                                	<span style="color:#F00;">在线</span>
                                                
                                                <?php }else{ ?>
                                                
                                                	<span style="color:#ccc;">离线</span>
                                                
                                                <?php } ?>
                                                
											</td>

                                            
											<td><if condition='$v["lock"] eq 1'>
											     <a onclick="if(confirm('确认解封此账户吗?')==false)return false;" href="{:U(GROUP_NAME .'/Member/editFeng',array('id'=>$v['id'],'lock'=>0))}">解封</a>
												<else/>
											    <a onclick="if(confirm('确认暂停此账户吗？')==false)return false;" href="{:U(GROUP_NAME .'/Member/editFeng',array('id'=>$v['id'],'lock'=>1))}">封号</a>												
												</if>

												| 
												<a href="{:U(GROUP_NAME .'/Member/editMember',array('id'=>$v['id']))}">修改</a> | 
												<a href="{:U(GROUP_NAME .'/Member/addJinbi',array('id'=>$v['id']))}">充值</a></td>
												<td><if condition="$v['status'] eq 2"><a href="{:U('systemlogined/Member/check',array('status'=>$v['status'],'id'=>$v['id']))}">需要上传款码</a><else/>不需要上传款码</if></td>
										</tr>
									</foreach>
									<tr>
										<td colspan="20" style="text-align:center;"><div class="page">{$page}</div></td>
									</tr>
								</tbody>
							</table>
                            
                            
                         </form>   
						</div>
						<!--PAGE CONTENT ENDS HERE-->
					</div><!--/row-->
				</div><!--/#page-content-->
			</div><!--/#main-content-->
		</div><!--/.fluid-container#main-container-->

		<a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse">
			<i class="icon-double-angle-up icon-only bigger-110"></i>
		</a>

		<!--basic scripts-->
		<script src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>

		<script src="__PUBLIC__/js/bootstrap.min.js"></script>

		<!--page specific plugin scripts-->
		<script src="__PUBLIC__/js/bootbox.min.js"></script>
		<script src="__PUBLIC__/js/jquery.dataTables.min.js"></script>
		<script src="__PUBLIC__/js/jquery.dataTables.bootstrap.js"></script>
		<script src="__PUBLIC__/js/TableTools.min.js"></script>
		<!--bbc scripts-->

		<script src="__PUBLIC__/js/bbc-elements.min.js"></script>
		<script src="__PUBLIC__/js/bbc.min.js"></script>

		<script src="__PUBLIC__/js/bootstrap.notification.js"></script>
		<script src="__PUBLIC__/js/jquery.easing.1.3.js"></script>
		<script type="text/javascript">
			function clear1(){
			     var start,end;
				if(confirm("确认要导出会员信息吗?")){
				      if($("#start_time").val()){
					          start = $("#start_time").val();
					   }else{
					          start =0;
					   }
					  if($("#end_time").val()){
					          end   =  $("#end_time").val();
					  }else{
					           end   = 0;
					  }
					
					window.location.href = "/index.php/systemlogined/Excel/member/";
				}
			}
		</script>		
		<!--inline scripts related to this page-->
	</body>
</html>
